package com.jing21.learn.common.learn;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * Created by 郑靖 on 2017/9/22.
 */
@Data
@EqualsAndHashCode
public class PageQuery<T> {

    @ApiModelProperty("第几页")
    @NotNull
    private Integer pageNum;

    @ApiModelProperty("每页多少行")
    @javax.validation.constraints.NotNull
    private Integer pageSize;

    @ApiModelProperty("查询对象")
    @NotNull
    private T query;

}
